<h3>查看您的选票</h3>

<div style="padding: 10px; margin-bottom: 10px; background-color: #eee; border: 1px #ddd solid;">
{#foreach $T.questions as question}

Question #{$T.question$index + 1}: {$T.question.short_name}<br>
{#if $T.choices[$T.question$index].length == 0}
<div style="margin-left: 15px;">&#x2610; <b><i>No choice selected</i></b></div>
{#/if}
{#foreach $T.choices[$T.question$index] as choice}
<div style="margin-left: 15px;">&#x2713; <b>{$T.choice}</b></div>
{#/for}
{#if $T.choices[$T.question$index].length < $T.question.max}
[{$T.choices[$T.question$index].length} selections out of possible {$T.question.min}-{$T.question.max}]<br />
{#/if}
[<a onclick="BOOTH.show_question({$T.question$index}); return false;" href="#">change</a>]
{#if !$T.question$last}<br><br>{#/if}
{#/for}
</div>

<p>您的选票追踪器 <b><tt style="font-size: 1.5em; word-break: break-all;">{$T.encrypted_vote_hash}</tt></b>.

<p>  
  <button id="proceed_button" onclick="BOOTH.cast_ballot();">提交投票</button><span id="loading_div"><img src="loading.gif" id="proceed_loading_img" /></span><br />
</p>


<form method="POST" action="{$T.cast_url}" id="send_ballot_form" class="prettyform">
<input type="hidden" name="election_uuid" value="{$T.election_uuid}" />
<input type="hidden" name="election_hash" value="{$T.election_hash}" />
<textarea name="encrypted_vote" style="display: none;">
{$T.encrypted_vote_json}
</textarea>
</form>

{#if $T.election_metadata.use_advanced_audit_features}
<div style="background: lightyellow; padding: 10px; border: 1px solid #ddd; max-width: 340px;">
<h4 style="padding: 0px; margin:0px;"><a onclick="$('#auditbody').slideToggle(250);" href="#">破坏与审计</a> <span style="font-size: 0.8em; color: #444">[optional]</span></h4>
<div id="auditbody" style="display:none;">
<p>
如果选择，您可以破坏这张选票并揭示您的选择是如何加密的。这是一个可选的审计过程.
</p>
<p>
然后，您将被引导重新加密您的选择以进行最终投递.
</p>
<button onclick="BOOTH.audit_ballot();" class="pretty">Spoil &amp; Audit</button>
</p>
</div>
</div>
{#/if}

<br />

